<script type="text/javascript">
$(document).ready(function(){

$("#btn_due_date").click(function(){
var installment = $("#jml_installment").val();
var html=''
for(var i=1;i<=installment;i++){
html +='<tr class="odd selected"><td>'+i+'</td><td><input class="form-control" type="text" name="input_due_date" id="input_due_date'+i+'" data-mask="99-99-9999"></td></tr>';
}
$("#body-duedate").html(html);
});


});
</script>

<div id="div-installment" class="grid-view">
<table class="items table">
<thead>
<tr>
<th id="mst-ndkHealth-grid3_c0">
Installment Ke
</a>
</th>
<th id="mst-ndkHealth-grid3_c1">
Due Date
</a>
</th>
</tr>
</thead>
<tbody id="body-duedate">

</tbody>
</table>
</div>